<template>
  <div class="right_module">
    <div class="right_top">
      <div class="nurse_Information">
        <div class="spanOnes">重点区域监控</div>
        <div class="divs" style="font-size: 18px;">暂无数据</div>
      </div>
    </div>
    <div class="right_button">
      <div class="list_data">
           <div class="bottomDiv">
           <div class="spanOne">访客登记记录</div>
           </div>
           <div class="botDiv">
             <img src="../../assets/ruijin/images/bottomOne.png">
              <span class="topSpan">今日登记访客数量: 10
                <div class="rightDiv">
                <div class="rightDivs" style="color:rgb(255,76,173);">未离开：1人</div>
                <div class="rightDivs" style="margin-left:20px;color:rgb(17,147,218);">已离开：9人</div>
              </div>
              </span>
           </div>
           <div class="botDiv">
             <div class="imgdiv">
               <img class="botimg" src="../../assets/ruijin/images/bottomTwo.png">
             </div>
              <span class="topSpan">今日登记访客数量: 10
                <div class="rightDiv">
                <div class="rightDivs" style="color:rgb(255,76,173);">未离开：1人</div>
                <div class="rightDivs" style="margin-left:20px;color:rgb(17,147,218);">已离开：9人</div>
              </div>
              </span>
           </div>
          <!-- <li class="no_data" v-if="list.length == 0">暂无告警</li> -->
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref, toRefs } from "vue";
import { BasicWarnTypeEnum } from "/@/utils/type";
import { router } from "/@/router";
export default defineComponent({
  props: {
    list: {
      type: Array,
      default: () => {
        return [];
      },
    },
  },
  setup(props, ctx) {
    const { list } = toRefs(props);
    const queryParams = ref({
      pageIndex: 1,
      limit: 10,
      keyWord: undefined,
      type: "",
    });
    const tabulation = ref([]);

    const BasicWarnTypeEnums = BasicWarnTypeEnum;

    const obtainalarm = (e) => {
      console.log(e, "e");
    };

    const realTime = () => {
      router.push("/alarm/real");
    };

    return {
      queryParams,
      tabulation,
      BasicWarnTypeEnums,
      list,
      obtainalarm,
      realTime,
    };
  },
});
</script>

<style lang="scss">
.rightDiv{
   display: inline-block;
    margin-top: 15%;
    font-size: 18px;
    width: 100%;
    text-align: center;
    display: flex;
    .rightDivs{
      width: 50%;
    }
}
.botDiv{
  margin-top:4%;
  margin-left:1%;
  display: inline-block;
  width: 98%;
  height: 35%;
  background: rgba(1, 1, 1, 0.3);
  img{
    vertical-align: top;
    display: inline-block;
    width: 30%;
    height: 60%;
    margin-top:12%;
  }
  .botimg{
    width: 80%;
    height: 65%;
    margin-top: 0%;
    margin-left: 10%;
  }
  .imgdiv{
     vertical-align: top;
    display: inline-block;
    width: 30%;
    height: 60%;
    margin-top:12%;
  }
  .topSpan{
    display: inline-block;
    margin-top: 10%;
    font-size: 18px;
    width: 60%;
    text-align: center;
  }
}
.list_text {
  .ant-select-dropdown {
    background-color: transparent !important;
  }
  .ant-select-item-option-content {
    flex: none !important;
  }
}
</style>

<style lang="scss" scoped>
.right_module {
  width: 20%;
  height: 100%;
  margin-right: 10px;
  margin-left: 15px;
  margin-top: 10px;
  ::v-deep .ant-select-selector {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
  }
  .right_top {
    width: 100%;
    height: 40%;
    display: flex;
    background-image: url("../../assets/ruijin/images/border.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    .right_top_a {
      width: 40%;
      .nurse {
        width: 55px;
        height: 60px;
        margin-top: 50%;
        margin-left: 40%;
        background-image: url("../../assets/ruijin/images/nurse.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
    }

    .nurse_Information {
      width: 100%;
      .spanOnes{
    width: 100%;
    height: 20%;
       font-size: 14px;
       margin-left: 20px;
       line-height: 84px;
  }
     .divs{
       text-align: center;
       margin-top: 30%;
     }
    }
    // .bottomDiv{
    //   background: red;
    // }
  }
  .bottomDiv{
    margin-top: 40px;
    height: 10%;
  }
  
  .spanOne{
    width: 100%;
       font-size: 14px;
       margin-left: 20px;
       line-height: 85px;
     }
     .spanTwo{
        font-size: 14px;
       float: right;
       margin-right: 15px;
       cursor: pointer;
     }
  .right_button {
    width: 100%;
    height: 56%;
    margin-top: 10px;
    background-image: url("../../assets/ruijin/images/border.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    .list_text {
      font-size: 18px;
      text-align: center;
      color: #01c3e8;
      padding-top: 20px;
    }
    .list_data {
      width: 100%;
      height: 100%;
      .warning_content_ul {
        height: 100%;
        overflow: auto;
        padding: 0;
        .no_data {
          height: 100%;
          width: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #ddd;
          font-size: 18px;
        }

        .a_a {
          width: 100%;
          height: 20%;
          margin-top: 2%;
          background-color: rgba(255, 255, 255, 0.1);

          .a_b {
            display: flex;
            font-size: 18px;
            margin-left: 5%;
            .a_t {
              margin-top: 10px;
              width: 55%;
              height: 100%;
            }

            .a_r {
              position: relative;
              left: 10%;
              width: 30%;
              height: 100%;
              .bracelet_picture_a {
                width: 20px;
                height: 26px;
                margin: 0;
                margin-top: 10px;
                margin-right: 20px;
                display: inline-block;
                background-image: url("../../assets/ruijin/images/minibracelet.png");
                background-repeat: no-repeat;
                background-size: 100% 100%;
              }
              .a_g {
                position: absolute;
                top: 30%;
              }
            }
          }
          .a_c {
            font-size: 15px;
            margin-top: 10px;
            display: flex;
            .a_v {
              margin-left: 10px;
            }
          }
        }
      }
      .a_k {
        width: 100%;
        height: 100%;
        font-size: 18px;
        text-align: center;
      }
    }
  }
}
</style>
